package FCRendering.sw;

import FCRendering.FCRConstants;
import FCRendering.FCRMaster;

@Deprecated
public class FCRReceiveMessageThread extends Thread{
	private FCRSocketThread st;
	public FCRReceiveMessageThread(FCRSocketThread st) {
		this.st=st;
	}
	@Override
	public void run() {
//		while (true) {
//			String str = FCRMaster.socket.receiveMessge();
//			if (str != null) {
//				if (str.indexOf("saveinfo:") > -1)
//					getsaveinfo(str);
//				if (str.indexOf(FCRConstants.SYSTEM + "开始游戏") > -1 && FCRMaster.saveList.getSaveNum() > 0&&FCRMaster.fcv.getSaveMouseClick()> -1) {
//					FCRMaster.fcv.setInterfacenum(4);
//					FCRMaster.fcv.setSaveUploadIsOk(0);
//					new Thread(new FCRLoadData()).start();
//				}
//				if (str.indexOf(FCRConstants.SYSTEM + "玩家2已做好准备") > -1)FCRMaster.fcv.setPlayerTwoOK(true);
//				if (str.indexOf(FCRConstants.PLAYER) > -1 || str.indexOf("系统") > -1)FCRMaster.fcv.getMessage().add(str);
//				if (str.equals("closeconnect")) {
//					FCRMaster.fcv.getMessage().add(FCRConstants.SYSTEM + FCRConstants.PLAYER + ((FCRMaster.fcv.getInterfacenum() == 3) ? "1" : "2")
//							+ FCRConstants.EXIT_ROOM);
//					FCRMaster.socket.closeConnect(FCRMaster.fcv.getInterfacenum());
//					if (FCRMaster.fcv.getInterfacenum() == 2)
//						st.creatseverFunction();
//					else {
//						FCRMaster.fcv.setInterfacenum(0);
//						FCRMaster.fcv.setClickBu(0);
//					}
//				}
//			}
//		}
	}

		
}
